{include file="file:$theme_global/_header.tpl"}

<div id="main">
	<div class="main">
		{if count($friends) gt 0}
		<div class="title"><h1>Friend List</h1></div>
		<ul class="thumbs users">
		  {foreach from=$friends item=friend}
		  <li>
			  <a href="/profile/{$friend.username}" title="{$friend.full_name} :: {if $friend.gender ne "unspecified"}{$friend.gender|capitalize} /{/if} {$friend.age} years old / {$friend.sign|capitalize} {if isset($friend.location)}/ {$friend.location|escape}{/if}" class="tips"><img src="{$friend.media.thumb_image_url}" alt="" height="78" width="78" />
			  {$friend.username}</a> 
			  {if $user.username eq $loggedInUsername}
			  <em><a href="/friends/index/delete/username/{$friend.username}" title="End friendship">(delete)</a></em>
			  {/if}
		  </li>
		  {/foreach}
		</ul>	
		{else}
		<div class="sec">
			<div class="title"><h1>Friend List</h1></div>
			<div class="inner">
				<p class="alt">No friends here.</p>
			</div>
		</div>
		{/if}
	</div>
	
</div>
{include file="file:$theme_global/_footer.tpl"}